﻿using Newtonsoft.Json;

namespace PusherClient
{
    internal class PusherMessage
    {
        [JsonProperty("event")]
        public string EventType { get; set; }
        [JsonProperty("data")]
        public object Data { get; set; }

        public PusherMessage()
        {}

        public PusherMessage(string eventType, object data)
        {
            EventType = eventType;
            Data = data;
        }
    }

    internal class PusherEventMessage : PusherMessage
    {
        [JsonProperty("channel")]
        public string Channel { get; set; }
    }   
}